#!/usr/bin/env python

import wx

import component as c
import resource as r

class ToolBar(wx.ToolBar):
    '''ToolBar class
    
    @author Julot <andy.julot@gmail.com>
    @since Wednesday, February 22, 2012. 11:21 AM'''
    
    def __init__(self, parent):
        style = wx.TB_HORIZONTAL | wx.TB_FLAT | wx.TB_NODIVIDER 
        super(ToolBar, self).__init__(parent, style=style)
        self.ToolBitmapSize = (16, 16)
        
        self.new = c.ToolBarToolBase(self, r.toolbar.BlueDocument.Bitmap,
                                     r.string.menu.contact.new.help,
                                     r.string.menu.contact.new.help)
        
        self.save = c.ToolBarToolBase(self, r.toolbar.Disk.Bitmap,
                                      r.string.menu.contact.save.help,
                                      r.string.menu.contact.save.help)
        self.save.disable()
        
        self.delete = c.ToolBarToolBase(self, r.toolbar.CrossScript.Bitmap,
                                        r.string.menu.contact.delete.help,
                                        r.string.menu.contact.delete.help)
        self.delete.disable()
        
        self.Realize()